﻿@{
    ViewBag.Title = "StringSlice";
    Layout = "~/Views/Shared/_Page.cshtml";
}

<h2>String Slice</h2>

<script type="text/javascript">
    $(document).ready(function () {
        var url = 'http://www.sina.com.cn';
        var domain = url.slice(7);
        ZEUS.DEBUG.log("url: " + url);
        ZEUS.DEBUG.log("url.slice(7): " + domain);

        var greeting = "Hello World";
        ZEUS.DEBUG.log("greeting: " + greeting);
        ZEUS.DEBUG.log("greeting.slice(6, 9): " + greeting.slice(6, 9));
        ZEUS.DEBUG.log("greeting.slice(-5, -1): " + greeting.slice(-5, -1));
    });
</script>


